let subTable=`
    <div rx-if="<%=data.boAlias%>.sub__<%=data.alias%>"><%=data.name%></div>
    <table class="rx-edit-table rx-table-default" rx-if="<%=data.boAlias%>.sub__<%=data.alias%>">
        <thead>
            <tr class="firstRow">
                <th>
                 #
                </th>
                <% var attrs = data.boAttrs;
                    for(let i=0,j=attrs.length;i<j;i++){
                    var attr = attrs[i] ;
                    %>
                <th>
                    <%=attr.comment%>
                </th>
                <%}%>
                
            </tr>
        </thead>
        <tbody>
            <tr rx-list="<%=data.boAlias%>.sub__<%=data.alias%>" >
                <td>
                  <%= "$\\{item_index +1}" %>
                </td>
                <% var attrs = data.boAttrs;
                    for(let i=0,j=attrs.length;i<j;i++){
                    var attr = attrs[i] ;
                    var str="$"+"{util.render(item." +attr.name +",'"+attr.control+ "','"+'v'+"')}";
                    %>
                <td>
                   <%=str%>
                </td>
                <%}%>
            </tr>
        </tbody>
    </table>
`;

export  default subTable;